package com.tinusgraglin.enclusiv.ui.components

import androidx.compose.material.AlertDialog
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import com.tinusgraglin.enclusiv.R

@Composable
fun SimpleConfirmAlertDialog(
    msg: String,
    onConfirm: () -> Unit
) {
    AlertDialog(
        onDismissRequest = onConfirm,
        confirmButton =
        {
            Button(onClick = onConfirm) {
                Text(stringResource(R.string.ui_ok))
            }
        },
        text = { Text(msg) },
    )
}